# 
tup = (12,34,67,80)
tup1 = (3.2,43,56,"hello")

# 合并元组   +
# print(tup + tup1)

# 重复元组中的元素  * 
# print(tup * 3)

# 判断指定元素是否在元组中   成员运算符   in 和 not in

# print(56 in tup1)   # True
# print(100 not in tup1)  # True

# 元组的切片  [开始下标:结束下标]
tup2 = (143,457,89,43,567,8)
print(tup2[1:4])
print(tup2[-1:])
print(tup2[2:])
print(tup2[:-1])





